package com.jiu345.api.service;

import com.jiu345.api.pojo.GoodsCategory;
import com.jiu345.api.pojo.vo.CategoryVo;

import java.util.List;

/**
 * package:IGoodsCateService
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:商品分类
 */
public interface IGoodsCateService {
    /*商品分类*/
    List<GoodsCategory> queryList(GoodsCategory bo);
    /*分类详情*/
    GoodsCategory queryById(Long id);
    /*二级分类详情*/
    GoodsCategory queryByTwoId(Long id);
    /*获取所有一级分类*/
    List<GoodsCategory> getOne();
    /*获取父级分类ID*/
    CategoryVo selectParentId(Long id);
    /*根据一级分类查询二级*/
    List<GoodsCategory> selectTwoList(Long id);
}
